<?php /* Smarty version Smarty-3.1.13, created on 2016-11-25 17:36:13
         compiled from ".\templates\audit.html" */ ?>
<?php /*%%SmartyHeaderCode:1629558106bbb65f2a9-02644123%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a1eb7b10a951e48f2eb9916519f9f41740ec2280' => 
    array (
      0 => '.\\templates\\audit.html',
      1 => 1480066569,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1629558106bbb65f2a9-02644123',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_58106bbb68e0a8_23790121',
  'variables' => 
  array (
    'admin' => 0,
    'joinInfo' => 0,
    'user' => 0,
    'v' => 0,
    'pagination' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58106bbb68e0a8_23790121')) {function content_58106bbb68e0a8_23790121($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('layout/activity_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


<section class="content-header">
    <h1>
        参与用户
        <small>信息</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="index.php?a=index"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active"><?php echo $_smarty_tpl->tpl_vars['admin']->value;?>
</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="nav-tabs-custom">
                <div class="tab-content">
                    <div class="tab-pane active" id="activity">
                        <div class="box">
                            <div class="box-body table-responsive no-padding">
                                <table class="table table-hover  text-center">
                                    <tbody>
                                    <tr>
                                        <th width="60px">ID</th>
                                        <th width="10%">姓名</th>
                                        <th>手机</th>
                                        <th>中奖记录</th>
                                        <th>报名时间</th>
                                    </tr>
                                    <?php  $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['joinInfo']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value){
$_smarty_tpl->tpl_vars['user']->_loop = true;
?>
                                    <tr class="zh-conctrol">
                                        <th><?php echo $_smarty_tpl->tpl_vars['user']->value['id'];?>
</th>
                                        <th><?php echo $_smarty_tpl->tpl_vars['user']->value['name'];?>
</th>
                                        <th><?php echo $_smarty_tpl->tpl_vars['user']->value['tel'];?>
</th>
                                        <th>
                                            <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['user']->value['prizeLog']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
                                            <li style="list-style-type:none"><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</li>
                                            <?php } ?>
                                        </th>
                                        <th><?php echo $_smarty_tpl->tpl_vars['user']->value['add_time'];?>
</th>
                                    </tr>
                                    <?php } ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <input type="button" id="export" value="导出excel">
            <input type="button" id="clear" value="清除数据">
            <?php echo $_smarty_tpl->tpl_vars['pagination']->value;?>

        </div>
    </div>
</section>
</div>
</div>

<!-- JavaScripts -->
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./plugin/layer/layer.js"></script>
<script src="./js/common.js"></script>
<script src="./plugin/adminLTE/js/app.min.js"></script>
<script src="./plugin/datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script src="./plugin/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script src="./js/pageAudit.js"></script>
<script>
$(document).on('click','#export',function(){
    window.open('index.php?a=export');
});
$("#clear").click(function() {
    $.ajax({
        type: "get",
        url: "index.php?a=clear",
        async: true,
        dataType: 'json',
        success: function(restlt) {
            if(restlt.status == 1){
                alert("数据清除成功！");
            }
        }
    })
})
</script>
</body>
</html>
<?php }} ?>